package com.itheima.ydd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.ydd.entity.Advimg;
import com.itheima.ydd.mapper.AdvimgMapper;
import com.itheima.ydd.service.AdvimgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdvimgServiceImpl extends ServiceImpl<AdvimgMapper,Advimg> implements AdvimgService {
    @Autowired
    private  AdvimgMapper advimgMapper;
    @Override
    public List<Advimg> getByPos(String id) {
        List<Advimg> advimgs = advimgMapper.getByPos(id);
        return advimgs;
    }
}
